-- GENERATED SPELL FOR [Rubble] --


function spell0_33768(pUnit, Event) --@Rumble,n/a--
pUnit:FullCastSpellOnTarget(63818,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33768', 538, 1)
end

function spell1_33768(pUnit, Event) --@Stone Nova,n/a--
pUnit:FullCastSpellOnTarget(63978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33768', 10313, 1)
end

function Sorts_33768(pUnit, Event)
local choix_sorts_33768 = math.random(0, 1)
if choix_sorts_33768 == 0 then
pUnit:RegisterEvent('spell0_33768', 1, 1)
end
if choix_sorts_33768 == 1 then
pUnit:RegisterEvent('spell1_33768', 1, 1)
end
end

function mob33768_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33768', math.random(1500, 3000), 1)
end

function mob33768_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33768_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33768_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33768, 1, 'mob33768_Action')
RegisterUnitEvent(33768, 2, 'mob33768_Leave')
RegisterUnitEvent(33768, 3, 'mob33768_Kill')
RegisterUnitEvent(33768, 4, 'mob33768_Die')
